package com.zz.springboot.mapper;

import com.zz.springboot.dto.UserValidDaysDto;
import com.zz.springboot.model.UserValidDays;
import tk.mybatis.mapper.common.Mapper;

public interface UserValidDaysMapper extends Mapper<UserValidDays> {

    /**
     * 插入用户有效期数据
     * @param userValidDays
     * @return
     */
    Integer insertUserValidDays(UserValidDaysDto userValidDays);

    /**
     * 更新用户有效期数据
     * @param userValidDays
     * @return
     */
    Integer updateUserValidDays(UserValidDaysDto userValidDays);


    /**
     * 根据用户名查询有效期数据
     * @param username
     * @return
     */
    Integer selectUserValidDaysByUsername(String username);
}